package com.topisv.tms.entity.stock;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.AreaGroup;
import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.EdiGoodsSku;
import com.topisv.tms.entity.IdEntity;

/**
 * 商家库存视图
 * @author ch
 *
 */
@Entity
@Table(name = "view_cus_stock")
public class ViewCusStock extends IdEntity implements Serializable {
	

	private static final long serialVersionUID = 1L;
	
	private String warehouseCode;
	
	private Customers customer;
	
	private String sku;
	
	private Integer salesNum;
	
	private Integer unusedNum;
	
	private Integer orderNum;
	
	private Integer lockedNum;
	
	private Integer transportNum;
	
	private Integer airNum;
	
	private Integer totalNum;
	
	private Integer safeNum;
	
    private String bar;
	
	private String spec;
	
	private String goodsName;
	
	private Long safeId;
	
	public String getBar() {
		return bar;
	}

	public void setBar(String bar) {
		this.bar = bar;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}


	public Integer getSafeNum() {
		return safeNum;
	}

	public void setSafeNum(Integer safeNum) {
		this.safeNum = safeNum;
	}

	

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public Integer getSalesNum() {
		return salesNum;
	}

	public void setSalesNum(Integer salesNum) {
		this.salesNum = salesNum;
	}

	public Integer getUnusedNum() {
		return unusedNum;
	}

	public void setUnusedNum(Integer unusedNum) {
		this.unusedNum = unusedNum;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getLockedNum() {
		return lockedNum;
	}

	public void setLockedNum(Integer lockedNum) {
		this.lockedNum = lockedNum;
	}

	public Integer getTransportNum() {
		return transportNum;
	}

	public void setTransportNum(Integer transportNum) {
		this.transportNum = transportNum;
	}

	public Integer getAirNum() {
		return airNum;
	}

	public void setAirNum(Integer airNum) {
		this.airNum = airNum;
	}

	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}

	@ManyToOne
	@JoinColumn(name="customer_code",referencedColumnName="customer_code")
	public Customers getCustomer() {
		return customer;
	}

	public void setCustomer(Customers customer) {
		this.customer = customer;
	}
	
	//dto
	private AreaGroup warehouse;
	
	private EdiGoodsSku ediGoodsSku;

	@Transient
	public EdiGoodsSku getEdiGoodsSku() {
		return ediGoodsSku;
	}

	public void setEdiGoodsSku(EdiGoodsSku ediGoodsSku) {
		this.ediGoodsSku = ediGoodsSku;
	}

	@Transient
	public AreaGroup getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(AreaGroup warehouse) {
		this.warehouse = warehouse;
	}

	public Long getSafeId() {
		return safeId;
	}

	public void setSafeId(Long safeId) {
		this.safeId = safeId;
	}
	
	
	
	
}